package cn.com.anysdk.map.exception;

/**
 * 地图API调用异常
 */
public class MapApiException extends MapException {
    
    private final int statusCode;
    
    public MapApiException(String message) {
        super("MAP_API_ERROR", message);
        this.statusCode = 500;
    }
    
    public MapApiException(String message, int statusCode) {
        super("MAP_API_ERROR", message);
        this.statusCode = statusCode;
    }
    
    public MapApiException(String message, Throwable cause) {
        super("MAP_API_ERROR", message, cause);
        this.statusCode = 500;
    }
    
    public MapApiException(String message, int statusCode, Throwable cause) {
        super("MAP_API_ERROR", message, cause);
        this.statusCode = statusCode;
    }
    
    public int getStatusCode() {
        return statusCode;
    }
} 